package com.newland.esp.entity.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @param
 * @author lw
 * @descripe
 * @date 2021/8/14 15:28
 * @Version 1.0
 **/
@Data
@TableName("user_login_record")
public class AdminEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("user_id")
    private Short userId;

    @TableField("user_name")
    private String userName;

    @TableField("user_email")
    private String userEmail;

    @TableField("password")
    private String password;

    @TableField("ec_salt")
    private String ecSalt;

    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @TableField("update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    @TableField("role_id")
    private Short roleId;

    @TableField("is_deleted")
    @TableLogic
    private Short isDeleted;

}
